home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
dev
/
amos
/
amosl0794.lzh
/
AMOSLIST
/
000089_mentat@sefl.satelnet.org_Sat Jul 23 17:28:50 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-01
|
2KB
Received: from sefl.satelnet.org (satelnet.org) by nfs1.digex.net with SMTP id AA24138
(5.67b8/IDA-1.5 for <mcox@access.digex.net>); Sat, 23 Jul 1994 17:28:44 -0400
Received: (from mentat@localhost) by sefl.satelnet.org (8.6.8.1/8.6.6) id RAA06066; Sat, 23 Jul 1994 17:28:27 -0400
From: MenTaT - !Productions <mentat@sefl.satelnet.org>
Message-Id: <199407232128.RAA06066@sefl.satelnet.org>
Subject: Re: PIPEing
To: mcox@access.digex.net (M D Cox)
Date: Sat, 23 Jul 1994 17:28:25 -0400 (EDT)
Cc: amos-list@access.digex.net
In-Reply-To: <199407231950.AA02344@access1.digex.net> from "M D Cox" at Jul 23, 94 03:50:28 pm
Content-Type: text
Content-Length: 1633
Status: RO
>
> >I'm not sure how the shell handles pipes - the easiest way to test it
> >would be to try it!
> But where would the input be? I mean, do I start a FOR NEXT loop and read
> everything or is each line located at a specific address in memory, like
> command line arguments?
There's always a possibility that it uses the PIPE: device...
> >AMOS program to redirect it, but it's not a very good solution... For
> >this kind of thing you're better off using C.
> I thought you might say that. :( I can write it in C without any problems
> just because it has special/standard facilities for STDIN and STDOUT. I
> just get tired of C at work.
Tired of C? Blasphemy! :) For years I was scared of C - all those
braces gave me nightmares, but it's actually a nice language... Now all
I need is SAS C! What AMOS needs is stdio support, but really AMOS is
useless for shell programs - the compiler produces some BIG code!
> >Here's a nice awk program... (Dunno if it works in GNU awk, but it works
> >in System V...)
> I will give it a try in GAWK.
>
> >Any awk/grep questions, just ask! :) (And here's something nice - search
> >for users with no password an a *NIX machine :
> AWK is quick and easy to do, fortunateluy I have experience with it.
> >grep '^[^:]*::' /etc/passwd
> >Not that I condone this sort of activity... :)
> Oh, neither do I . . . ;)
This is kind of off the AMOS topic now, but anyone know how far the LINUX
port to the Amiga is from completion? (And what kind of system will it
require?)
--
$ make love
Make: Don't know how to make love. Stop.
$ rm God
rm: God non-existent.